package cn.laixueit.exception;

import cn.laixueit.pojo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class MyException {

    @ExceptionHandler(Exception.class)
    public Result ex(){
        return new Result(false,"执行失败");
    }
}
